<template>
    <button v-on:click="count++" class="k2">You clicked {{ name }} {{ count }} times.</button>
</template>

<script>
    export default {
        name: "ButtonCounter",
        props: {
            name: String
        },
        data: function(){
            return {
                count: 0
            }
        }
    }
</script>

<style scoped>
.k2 {
    color: aqua;
    cursor: pointer;
}
</style>